package com.example.exceptionhanler;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum ExceptionEnum {

	// 枚举

	CATEGORY_NOT_FOND(404, "商品分类叶子节点不存在!"),
	BRAND_NOT_FOUND(404, "品牌不存在!"),
	BRAND_SAVE_ERROR(500, "新增品牌失败！"),
	UPLOAD_FILE_ERROR(500, "文件上传失败！"),
	INVALID_FILE_TYPE(400, "无效的文件类型！"),
	SPEC_GROUP_NOT_FOND(404, "商品规格组不存在！"),
	SPEC_PARAM_NOT_FOND(404, "商品规格参数不存在！"),
	GOODS_NOT_FOND(404, "商品不存在！");
	private int cord;
	private String msg;
}
